﻿<%
Response.Expires = 0;
Response.ExpiresAbsolute = DateTime.Now;
Response.AddHeader("pragma", "no-cache");
Response.AddHeader("cache-control", "private");
Response.CacheControl = "no-cache";
%>
<ali:Pagination Page="PageNumber" PageSize="5" RecordCount="List[RecordCount]">
	<ul class="Pagination1">
		<li class="Left">第<%=RangeLower%>-<%=RangeUpper%>条 共<span id="RecordCount"><%=RecordCount%></span>条</li>
		<li class="Right">
			<ali:FirstPage>
				<ali:Yes>
					首页 上页 |
				</ali:Yes>
				<ali:No>
					<a href="javascript:LoadPersonComment(1)">首页</a>
					<a href="javascript:LoadPersonComment(<%=PageNumber%> - 1)">上页</a> |
				</ali:No>
			</ali:FirstPage>
			<ali:CurrentPage Range="5">
				<ali:Yes>
					<strong><%=Index%></strong>						
				</ali:Yes>
				<ali:No>
					<a href="javascript:LoadPersonComment(<%=Index%>)"><%=Index%></a>
				</ali:No>
			</ali:CurrentPage>
			<ali:LastPage>
				<ali:Yes>
					| 下页 尾页
				</ali:Yes>
				<ali:No>
					| <a href="javascript:LoadPersonComment(<%=PageNumber%> + 1)">下页</a>
					<a href="javascript:LoadPersonComment(<%=PageCount%>)">尾页</a>
				</ali:No>
			</ali:LastPage>
		</li>
	</ul>
</ali:Pagination>	
<ali:List ID="List" Object="PersonComment" Page="PageNumber" PageSize="5" Condition="IsChecked=true and PersonID=Request.QueryString['PersonID']">
	<ali:Record>
		<h6>
			<%If Guid.Equals(CreatorID, Guid.Empty)%>
				匿名网友
			<%Else%>
				<%=Creator%>
			<%EndIf%>
			 发表于（<%=CreateTime%>）
		</h6>
		<div id="Div<%=ID%>">
			<pre><%=HttpUtility.HtmlEncode(Convert.ToString(Content))%></pre>
			<ali:Get Object="PersonComment" Guid="ToID">
				<blockquote>
					<%If Guid.Equals(CreatorID, Guid.Empty)%>
						匿名网友
					<%Else%>
						<%=Creator%>
					<%EndIf%>
					写道：<br />
					<pre><%=HttpUtility.HtmlEncode(Convert.ToString(Content))%></pre>
				</blockquote>
			</ali:Get>
			<p><a href="javascript:;" id="<%=ID%>">回应此评论</a></p>
		</div>
	</ali:Record>
</ali:List>
<ali:Pagination Page="PageNumber" PageSize="5" RecordCount="List[RecordCount]">
	<ul class="Pagination1">
		<li class="Left">第<%=RangeLower%>-<%=RangeUpper%>条 共<%=RecordCount%>条</li>
		<li class="Right">
			<ali:FirstPage>
				<ali:Yes>
					首页 上页 |
				</ali:Yes>
				<ali:No>
					<a href="javascript:LoadPersonComment(1)">首页</a>
					<a href="javascript:LoadPersonComment(<%=PageNumber%> - 1)">上页</a> |
				</ali:No>
			</ali:FirstPage>
			<ali:CurrentPage Range="5">
				<ali:Yes>
					<strong><%=Index%></strong>						
				</ali:Yes>
				<ali:No>
					<a href="javascript:LoadPersonComment(<%=Index%>)"><%=Index%></a>
				</ali:No>
			</ali:CurrentPage>
			<ali:LastPage>
				<ali:Yes>
					| 下页 尾页
				</ali:Yes>
				<ali:No>
					| <a href="javascript:LoadPersonComment(<%=PageNumber%> + 1)">下页</a>
					<a href="javascript:LoadPersonComment(<%=PageCount%>)">尾页</a>
				</ali:No>
			</ali:LastPage>
		</li>
	</ul>
</ali:Pagination>	
